package com.wuyu.mini.dubbo.rpc;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 请求
 */
public class RequestDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类名
     */
    private String className;

    /**
     * 方法名
     */
    private String methodName;

    /**
     * 参数类型
     */
    private Class[] types;

    /**
     * 参数
     */
    private Object[] params;

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    public Class[] getTypes() {
        return types;
    }

    public void setTypes(Class[] types) {
        this.types = types;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "RequestDTO{" +
            "className='" + className + '\'' +
            ", methodName='" + methodName + '\'' +
            ", types=" + Arrays.toString(types) +
            ", params=" + Arrays.toString(params) +
            '}';
    }
}
